<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-06-17 18:16:20
 * @LastEditors: charles
 * @LastEditTime: 2021-06-17 18:18:57
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>函数</title>
</head>
<body>
  <script>
    let foo = function(){
      console.log("this is a function foo");
    };
    let arr = [
      {name:"terry"},
      "hello",
      function(){
        console.log("this is a function",this);
      }
    ];
    foo();
    arr[2]();
  </script>
</body>
</html>